package com.snj.test;

import java.util.HashMap;
import java.util.Map;

/**
 * @author yujie
 * @data 2024/10/21 11:17
 */
public class test {
    public static void main(String[] args) {
        Map<String, String> map = new HashMap<>();
        String two11 = map.get("two1");
        String two22 = map.get("two2");

        if (two11 == null) {
            two11 = "0";
        }

        if (two22 == null) {
            two22 = "0";
        }

        double TwoSum = Double.valueOf(two11) - Double.valueOf(two22);

        map.put("Fsum", "0.0");
        String fsum = map.get("Fsum");
        System.out.println("Fsum: " + fsum);
        if (fsum != null && Double.valueOf(fsum) != 0) {
            System.out.println("测试有");
        } else {
            System.out.println("测试无");
        }

        System.out.println(TwoSum);
    }
}
